
import { IObject3DMap } from '../Controller/State/Element' 

export type { IObject3DMap } from '../Controller/State/Element' 

export default class Element<K extends keyof IObject3DMap> {

    /** 版本 */
    version: number = 0;

    /** 原件类型 */
    type: K;

    /** three 对象 */
    object3D: IObject3DMap[K];

    constructor(type: K, object3D: IObject3DMap[K]){
        this.type = type;
        this.object3D = object3D;
    }
}


